package com.study.spmongodb.debugger;

/**
 * @author MI
 * @version 1.0
 * @date 2020/11/12 16:26
 */
public class Service {

    private Dao dao;

    public Service(Dao dao) {
        this.dao = dao;
    }

    public Dao getDao() {
        return dao;
    }

    public void setDao(Dao dao) {
        this.dao = dao;
    }

    public void say() {
        System.out.println("service");
        dao.say();
    }
}
